export enum OssProvider {
  ALIYUN = 'ALIYUN',
  LOCAL = 'LOCAL'
}

export interface OssFile {
  name: string;
  path: string;
  url: string;
  size: number;
  type: string;
  isPublic: boolean;
  uploadTime: string;
}

export interface OssConfig {
  provider: OssProvider;
  accessKeyId?: string;
  accessKeySecret?: string;
  bucketName?: string;
  endpoint?: string;
  basePath?: string;
}

export interface UploadOptions {
  isPublic: boolean;
  path?: string;
}